package com.study.talk.module.netty.message;

import com.study.talk.common.serializer.Serializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public abstract class TalkMessage implements Serializable {

    public static final long serialVersionUID = 4444888857825673346L;

    private final transient byte version = 1;

    public String dateTime;

    public abstract byte getType();
}
